package com.qianfeng.lingshijia;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;
import android.widget.Toast;

import fragment.PersonFragment;

/**
 * Created by Administrator on 2016/1/13.
 */
public class PersonSetActivity  extends BaseActivity implements View.OnClickListener{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.person_setting);

        FrameLayout message= (FrameLayout) findViewById(R.id.id_person_message);
        message.setOnClickListener(this);

        FrameLayout clean= (FrameLayout) findViewById(R.id.id_clean);
        clean.setOnClickListener(this);

        FrameLayout xieyi= (FrameLayout) findViewById(R.id.id_xieyi);
        xieyi.setOnClickListener(this);
        FrameLayout about= (FrameLayout) findViewById(R.id.id_about);
        about.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.id_person_message:
                startActivity(new Intent(this,PersonMessageActivity.class));
                break;

            case R.id.id_clean:
                Toast.makeText(getApplication(),"清除缓存完成",Toast.LENGTH_SHORT).show();
            break;
            case R.id.id_xieyi:
                startActivity(new Intent(this,PersonXieYiActivity.class));
            break;
            case R.id.id_about:
                startActivity(new Intent(this,PersonAboutActivity.class));
                break;
        }
    }
     public void come(View view){
        finish();
    }
}